import request from '@/utils/request'

// 车型最新设置车价列表
export function workList(data) {
  return request({
    url: '/ota/work/list',
    method: 'GET',
    params:data
  })
}

// 门店列表
export function storeList() {
  return request({
    url: '/ota/work/otaSysStore',
    method: 'GET'
  })
}

// 车型列表
export function carModelList(storeId) {
  return request({
    url: `/ota/work/otaSysModel/${storeId}`,
    method: 'GET'
  })
}

// 服务商列表
export function servicesList() {
  return request({
    url: '/ota/work/list/work/list',
    method: 'GET'
  })
}

//手动下发工单
export function createdWork(data) {
  return request({
    url: '/ota/work',
    method: 'POST',
    data: data
  })
}
//车型价格详情
export function workDetail(id) {
  return request({
    url: `/ota/work/${id}`,
    method: 'GET'
  })
}

